export const BASE_PATH = "/xiaomi-web";

export const getFullPath = (path: string): string => {
  // 如果路径已经包含基础路径，则直接返回
  if (path.startsWith(BASE_PATH)) {
    return path;
  }
  // 确保路径以 / 开头
  const normalizedPath = path.startsWith("/") ? path : `/${path}`;
  return `${BASE_PATH}${normalizedPath}`;
};
